package org.haredot.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.haredot.dto.Permission;
import org.haredot.dto.UserDetailsDTO;
import org.haredot.entity.Role;
import org.haredot.entity.User;

import java.util.List;

@Mapper
public interface UserDetailsMapper {

    public UserDetailsDTO findUserByUsername(String username) ;

    List<Permission> findAllResources();

    List<Permission> findResourcesByRoleIds(List<Role> roles);
}
